/* 柱状图 */
var chartDom = document.getElementById('bar');
var myChart = echarts.init(chartDom);
var option;

option = {
	legend: {},
	tooltip: {},
	dataset: {
		source: [
			['product', '20-30', '31-40', '41-50', '51-60', '61-70'],
			['第一季度', 30, 120, 200, 120, 50],
			['第二季度', 90, 220, 300, 320, 180],
			['第三季度', 180, 350, 240, 120, 100],
			['第四季度', 90, 200, 100, 220, 90]
		]
	},
	xAxis: {
		type: 'category'
	},
	yAxis: {},
	// 添加 两组内容，用于显示柱形图
	series: [{
		type: 'bar'
	}, {
		type: 'bar'
	}, {
		type: 'bar'
	}, {
		type: 'bar'
	}, {
		type: 'bar'
	}]
};

option && myChart.setOption(option);
